import request from '@/utils/request'

// 查询报考学习地点信息列表
export function listStudyLocation(query) {
  return request({
    url: '/chengkao/studyLocation/list',
    method: 'get',
    params: query
  })
}

// 查询报考学习地点信息详细
export function getStudyLocation(id) {
  return request({
    url: '/chengkao/studyLocation/' + id,
    method: 'get'
  })
}

// 新增报考学习地点信息
export function addStudyLocation(data) {
  return request({
    url: '/chengkao/studyLocation',
    method: 'post',
    data: data
  })
}

// 修改报考学习地点信息
export function updateStudyLocation(data) {
  return request({
    url: '/chengkao/studyLocation',
    method: 'put',
    data: data
  })
}

// 删除报考学习地点信息
export function delStudyLocation(id) {
  return request({
    url: '/chengkao/studyLocation/' + id,
    method: 'delete'
  })
}
